package com.huyucheng.todolist

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
//import com.huyucheng.todolist.TodoListViewModel

class TodoListViewModelFactory(private val todoDao: TodoDao) : ViewModelProvider.Factory {

    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return TodoListViewModel(todoDao) as T
    }
}